package next.Admin;

import next.CustomLayout.TitleWidget;
import next.Functionality.S_3R4_Activity;
import next.TemplateActivity.R;
import next.control.ApplicationController;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class Admin_Principal extends S_3R4_Activity {

	private TextView user, name, email, address, afiliationDate, status;
	private Button PI, LI, SI, StatusI, BR, AP;
	
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState); 
	        setContentView(R.layout.appa_admin_principal_layout);  
	      
	        //--Initialize title Widget
	        TitleWidget titleWidget = (TitleWidget)findViewById(R.id.normal_activity_CV_TWI1);
	        //--Call the methods to change the underlying widgets
	        titleWidget.setTitle("Admin Profile");
	        titleWidget.setIcon(R.drawable.ic_launcher_admin_si);
	        titleWidget.showProgressBar();
	        titleWidget.hideProgressBar();
	        
	        //--Setting Menu.
	        PrepareMenu(ApplicationController.MenuItems,ApplicationController.MenuNameItems, null, null);
	        
	        //--Assembling XML Widgets--
	         user= (TextView) findViewById(R.id.admin_principalUSER);
	         name= (TextView) findViewById(R.id.admin_principalNAME);
	         email= (TextView) findViewById(R.id.admin_principalEMAIL);
	         address= (TextView) findViewById(R.id.admin_principalADDRESS);
	         afiliationDate= (TextView) findViewById(R.id.admin_principalAFILIATIONDATE);
	         status= (TextView) findViewById(R.id.admin_principalSTATUS);
	        	         	         
	         PI=(Button) findViewById(R.id.admin_principalBTN01);
	         PI.setOnClickListener(ApplicationController.getInstance());
	         LI=(Button) findViewById(R.id.admin_principalBTN02);
	         LI.setOnClickListener(ApplicationController.getInstance());
	         SI=(Button) findViewById(R.id.admin_principalBTN03);
	         SI.setOnClickListener(ApplicationController.getInstance());
	         StatusI=(Button) findViewById(R.id.admin_principalBTN04);
	         StatusI.setOnClickListener(ApplicationController.getInstance());
	         BR=(Button) findViewById(R.id.admin_principalBTN05);
	         BR.setOnClickListener(ApplicationController.getInstance());
	         AP=(Button) findViewById(R.id.admin_principalBTN06);
	         AP.setOnClickListener(ApplicationController.getInstance());
	      
	       }
}
